package practice02;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice02
 * @ClassName: Animal
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/8 13:49
 * @Copyright 大牛版板所有
 */
public class Animal {
    private String name;
    private int age;
    private String gender;

    public Animal() {
    }

    public Animal(String name, int age, String gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void eat(){

    }
    public void sleep(){
        System.out.println("我叫"+this.getName()+"，非常喜欢睡觉的");
    }
}
